import socket
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
port = 65523
s.connect(("localhost",port))
print s.recv(1024)
s.send('hello')
s.close()
